package com.gcalsync.cal;

import com.gcalsync.store.*;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

/**
 * @author Thomas Oldervoll, thomas@zenior.no
 * @author $Author$
 * @version $Rev: 9 $
 * @date $Date$
 */
public class IdCorrelation extends Storable {

    public String phoneCalId;
    public String gCalId;
    public long endDate;

    public IdCorrelation() {
        super(RecordTypes.ID_CORRELATION);
    }

    public void readRecord(DataInputStream in) throws IOException {
        phoneCalId = in.readUTF();
        gCalId = in.readUTF();
    }

    public void writeRecord(DataOutputStream out) throws IOException {
        out.writeUTF(phoneCalId);
        out.writeUTF(gCalId);
    }
}
